import http from '@/utils/request'

//插入图片
export async function uploadArticleFilesApi(parm){
  return await http.upload("/article/files",parm)
}

//新建消息
export async function saveArticleApi(parm){
  return await http.post("/article",parm)
}


//修改消息状态
export async function editArticleStatusApi(parm){
  return await http.put("/article",parm)
}

//删除消息
export async function deleteArticleApi(parm){
  return await http.delete("/article",parm)
}

//批量删除消息
export async function deleteArticleBatchApi(parm){
  return await http.delete("/article/batch/delete",parm)
}

export async function getArticleListApi(parm){
  return await http.get("/article",parm)
}

export async function getArticleByNoApi(parm){
  return await http.getRestApi("/article",parm)
}
